<?php
/**
 * Copyright 2011  SURFfoundation
 * 
 * This file is part of ESCAPE.
 * 
 * ESCAPE is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * ESCAPE is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with ESCAPE.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * For more information:
 * http://escapesurf.wordpress.com/
 * http://www.surffoundation.nl/
 * 
 * Contact: d.vierkant@utwente.nl
 * 
 * @license http://www.gnu.org/licenses/gpl.html GNU GPLv3
 */
?>
<?php
// DO NOT CHANGE THIS FILE
// these settings can be overridden in the files the virtualhosts folder 

// show detailed error descriptions if true, not recommended for production servers
$escape_config['debug'] = false;


$escape_config['fedora'] = array();
$escape_config['triplestore'] = array();


// Resource Map creator foaf:name value
$escape_config['rem_creator_name'] = 'ESCAPE repository';
// Resource Map creator foaf:page value:
$escape_config['rem_creator_page'] = 'http://' . $_SERVER['SERVER_NAME'] . '/';


// proxy server URL
$escape_config['proxy_server_url'] = null;

// default template
$escape_config['default_template'] = 'default';

// breadcrumb settings
$escape_config['breadcrumbs_num'] = 5;
$escape_config['breadcrumbs_title_length'] = 22;

// number of aggregations shown on the home page
$escape_config['homepage_latest_count'] = 20;

// show the "my account" section in MyESCAPE, this section might be unnecessary when using SAML only
$escape_config['myescape_show_my_account_section'] = true;

// location of the repository configuration schema folder
$escape_config['repository_schema_path'] = 'rsc/schema/';
// location of the cache folder (folder needs to be writable), data is automatically stored in a sub folder for every virtual host
$escape_config['cache_path'] = 'var/cache/';

// location of the openid store (folder needs to be writable), data is automatically stored in a sub folder for every virtual host
$escape_config['openid_store_path'] = 'var/openid_store/';

// URI prefix for objects stored in the triple store, 'info:fedora/' is the only allowed value when using Fedora
$escape_config['uri_prefix'] = 'info:fedora/';


// OAI sets
$escape_config['oai_sets'] = array(
	'issued' => array(
		'name' => 'Issued',
		'description' => 'Issued items',
		'predicate' => 'http://purl.org/dc/terms/issued',
	),
);


// labels
$escape_config['label_aggregation'] = 'aggregation';
$escape_config['label_aggregations'] = 'aggregations';
$escape_config['label_an_aggregation'] = 'an aggregation';


// enable local authentication
$escape_config['upload_enabled'] = true;


// enable local authentication
$escape_config['localauthn_enabled'] = true;

// set to true to enable users to reset their password
$escape_config['password_reset_enabled'] = false;

// enable OpenID authentication
$escape_config['openidauthn_enabled'] = true;

// enable account signup
$escape_config['signup_enabled'] = true;

// enable SAML
$escape_config['saml']['enabled'] = false;

// data source identifier for user objects created using SAML provisioning (do not change!)
$escape_config['saml']['dataSource'] = 'http://purl.utwente.nl/ns/escape-system.owl#SamlDataSource';



$escape_config['metaextractor'] = array();

// HTTP headers used for URL connections opened by metaextractor
$escape_config['metaextractor']['http_headers'] = 'Accept: application/rdf+xml, text/rdf+n3;q=0.9, text/n3;q=0.9, application/x-turtle;q=0.9, text/turtle;q=0.9, application/xml;q=0.8, text/xml;q=0.8, application/xhtml+xml;q=0.4, text/html;q=0.3, */*;q=0.1';
// read timeout used for URL connections opened by metaextractor (= wait timeout)
$escape_config['metaextractor']['read_timeout'] = 5;
// fetch timeout used for URL connections opened by metaextractor (= total fetch time timeout)
$escape_config['metaextractor']['fetch_timeout'] = 30;
// size limit for URLs opened by metaextractor
$escape_config['metaextractor']['content_limit'] = 8 * 1024 * 1024;
// list of metadata extraction methods to be used by metaextractor (in order)
$escape_config['metaextractor']['extractors'] = array(
	'metaextractor_extractor_OaiOre',
	'metaextractor_extractor_HtmlMeta',
	'metaextractor_extractor_Doi',
);
// true = always use all extraction methods, false = stop after an extration method succeeded
$escape_config['metaextractor']['multimode'] = true;


$escape_config['metamapper'] = array();

// meta mapper type mappings
//TODO: create some useful mappings for common ontologies
$escape_config['metamapper']['type_mappings'] = array(
//	array(
//		'source_type' => 'http://xmlns.com/foaf/0.1/Agent',
//		'target_type' => 'http://xmlns.com/foaf/0.1/Person',
//		'priority' => 30
//	),
);

// meta mapper predicate mappings
$escape_config['metamapper']['predicate_mappings'] = array(
	array(
		'target_type' => 'http://xmlns.com/foaf/0.1/Person',
		'source_predicate' => 'http://purl.org/dc/terms/title',
		'target_predicate' => 'http://xmlns.com/foaf/0.1/name',
		'priority' => 30
	),
	// dc -> dcterms
	array(
		'source_predicate' => 'http://purl.org/dc/elements/1.1/contributor',
		'target_predicate' => 'http://purl.org/dc/terms/contributor',
		'priority' => 100
	),
	array(
		'source_predicate' => 'http://purl.org/dc/elements/1.1/coverage',
		'target_predicate' => 'http://purl.org/dc/terms/coverage',
		'priority' => 100
	),
	array(
		'source_predicate' => 'http://purl.org/dc/elements/1.1/creator',
		'target_predicate' => 'http://purl.org/dc/terms/creator',
		'priority' => 100
	),
	array(
		'source_predicate' => 'http://purl.org/dc/elements/1.1/date',
		'target_predicate' => 'http://purl.org/dc/terms/date',
		'priority' => 100
	),
	array(
		'source_predicate' => 'http://purl.org/dc/elements/1.1/description',
		'target_predicate' => 'http://purl.org/dc/terms/description',
		'priority' => 100
	),
	array(
		'source_predicate' => 'http://purl.org/dc/elements/1.1/format',
		'target_predicate' => 'http://purl.org/dc/terms/format',
		'priority' => 100
	),
	array(
		'source_predicate' => 'http://purl.org/dc/elements/1.1/identifier',
		'target_predicate' => 'http://purl.org/dc/terms/identifier',
		'priority' => 100
	),
	array(
		'source_predicate' => 'http://purl.org/dc/elements/1.1/language',
		'target_predicate' => 'http://purl.org/dc/terms/language',
		'priority' => 100
	),
	array(
		'source_predicate' => 'http://purl.org/dc/elements/1.1/publisher',
		'target_predicate' => 'http://purl.org/dc/terms/publisher',
		'priority' => 100
	),
	array(
		'source_predicate' => 'http://purl.org/dc/elements/1.1/relation',
		'target_predicate' => 'http://purl.org/dc/terms/relation',
		'priority' => 100
	),
	array(
		'source_predicate' => 'http://purl.org/dc/elements/1.1/rights',
		'target_predicate' => 'http://purl.org/dc/terms/rights',
		'priority' => 100
	),
	array(
		'source_predicate' => 'http://purl.org/dc/elements/1.1/source',
		'target_predicate' => 'http://purl.org/dc/terms/source',
		'priority' => 100
	),
	array(
		'source_predicate' => 'http://purl.org/dc/elements/1.1/subject',
		'target_predicate' => 'http://purl.org/dc/terms/subject',
		'priority' => 100
	),
	array(
		'source_predicate' => 'http://purl.org/dc/elements/1.1/title',
		'target_predicate' => 'http://purl.org/dc/terms/title',
		'priority' => 100
	),
	array(
		'source_predicate' => 'http://purl.org/dc/elements/1.1/type',
		'target_predicate' => 'http://purl.org/dc/terms/type',
		'priority' => 100
	),
);


$escape_config['entityresolution'] = array();

// only entities with difference scores lower than or equal to the threshold will be returned
$escape_config['entityresolution']['threshold'] = 10;


$escape_config['opensocial'] = array();

$escape_config['opensocial']['description'] = 'ESCAPE gadget';
//$escape_config['opensocial']['author'] = 'ESCAPE';
//$escape_config['opensocial']['screenshot'] = '';
$escape_config['opensocial']['title'] = 'ESCAPE';
$escape_config['opensocial']['height'] = 500;
//$escape_config['opensocial']['thumbnail'] = '';
//$escape_config['opensocial']['author_email'] = '';

// list of MIME types which should be opened inline in the browser
$escape_config['inline_mime_types'] = array(
	'application/msword',
	'application/msexcel',
	'application/ms-excel',
	'application/pdf',
	'application/vnd.ms-excel',
	'application/vnd.ms-powerpoint',
	'application/vnd.ms-excel.addin.macroEnabled.12',
	'application/vnd.ms-excel.sheet.macroEnabled.12',
	'application/vnd.ms-powerpoint.addin.macroEnabled.12',
	'application/vnd.ms-powerpoint.presentation.macroEnabled.12',
	'application/vnd.ms-powerpoint.slideshow.macroEnabled12',
	'application/vnd.ms-word.document.macroEnabled.12',
	'application/vnd.openxmlformats-officedocument.presentationml.presentation',
	'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
	'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
	'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
	'application/vnd.oasis.opendocument.chart',
	'application/vnd.oasis.opendocument.database',
	'application/vnd.oasis.opendocument.formula',
	'application/vnd.oasis.opendocument.graphics',
	'application/vnd.oasis.opendocument.image',
	'application/vnd.oasis.opendocument.presentation',
	'application/vnd.oasis.opendocument.spreadsheet',
	'application/vnd.oasis.opendocument.text',
	'application/vnd.oasis.opendocument.text-web',
	'application/vnd.rn-realmedia',
	'application/xhtml+xml',
	'application/x-latex',
	'audio/basic',
	'audio/midi',
	'audio/mpeg',
	'audio/x-aiff',
	'audio/x-midi',
	'audio/x-mpeg',
	'audio/x-mpegurl',
	'audio/x-scpls',
	'audio/x-wav',
	'image/bmp',
	'image/gif',
	'image/ief',
	'image/jpeg',
	'image/pict',
	'image/png',
	'image/svg+xml',
	'image/tiff',
	'text/html',
	'text/plain',
	'text/richtext',
	'text/rtf',
	'video/mp4',
	'video/mpeg',
	'video/quicktime',
	'video/x-dv',
	'video/x-ms-asf',
	'video/x-msvideo',
	'video/x-ms-wmv',
	'video/x-rad-screenplay',
	'video/x-sgi-movie',
);
